home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / CONTRSRC.ZIP / SRC / MISC / JARANDOM.TXT / text0000.txt < prev   
Encoding:
Text File  |  1994-10-03  |  1.1 KB  |  36 lines

  1. In article <350u46$bio@news.u.washington.edu>, plexus@u.washington.edu (Delmar Larsen) writes:
  2.  
  3. >    Would anyone here be interested in sharing their random
  4. >number generator.
  5.  
  6. Ours can be found in most of our source releases... the last one is incosrc.zip
  7.  
  8. >Random    Macro
  9. >    mov    ax,seed
  10. >    add    ax,9248h    ;; 1001001001001000b (visual rep)
  11. >    ror    ax,1
  12. >    ror    ax,1
  13. >    ror    ax,1
  14. >    mov    seed,ax
  15. >ENDM
  16. >
  17. >Here's the spread:
  18.  
  19. >This was generated using a little c program with inline asm. The 
  20. >number of iterations was 1000. 
  21.  
  22. I think that other info would be needed in order to qualify the algorithm...
  23. some random number generators can show little patterns (or BIG ones, but :))
  24. in the data generated. Try generating starfields with them, for example, as
  25. I don't remember the academical tests right now.
  26.  
  27.  
  28. Seeyanara
  29.                                    Jare/Iguana/VangeliSTeam
  30.  
  31. ===================================================================
  32. VangeliSTeam Internet address: jarevalo@yeti.dit.upm.es (JCAB)
  33. Iguana       Internet address: a880104@zipi.fi.upm.es   (Jare)
  34. -------------------------------------------------------------------
  35.  
  36.